package xian.woniu.service;

import xian.woniu.entity.Appointment;

import java.util.List;

/**
 * @author SongHang
 * @time 2022/06/30 14:58:40
 */
public interface IAppointmentService {
    /**
     * 新增诊疗表
     * @param appointment
     * @return
     */
    int save(Appointment appointment);

    /**
     * 删除诊疗表
     * @param aid
     * @return
     */
    int delete(Integer aid);

    /**
     * 查看具体诊疗表
     * @param aid
     * @return
     */
    Appointment findOne(Integer aid);

    /**
     * 查找所有诊疗记录
     * @return
     */
    List<Appointment> findAll();

    /**
     * 更改诊疗记录
     * @param appointment
     * @return
     */
    int update(Appointment appointment);

    /**
     * 查询所有预约信息包含 个人信息
     * @return
     */
    List<Appointment> findAllWithMsg();
}
